package com.music.client.composer.client.impl;

import org.springframework.beans.factory.annotation.Required;

import com.music.client.composer.client.ComposerClient;
import com.music.service.composer.service.ComposerService;

public class ComposerClientImpl implements ComposerClient {

	private ComposerService mComposerService;
	
	public boolean addNewComposer(Long pMemberId, String pComposerName) {
		return getComposerService().addNewComposer(pMemberId, pComposerName);
	}

	public boolean deleteComposer(Long pMemberId, Long pComposerId) {
		return getComposerService().deleteComposer(pMemberId, pComposerId);
	}

	public boolean editComposerName(Long pMemberId, Long pComposerId,String pComposerName) {
		return getComposerService().editComposerName(pMemberId, pComposerId, pComposerName);
	}

	/**
	 * @return the composerService
	 */
	public ComposerService getComposerService() {
		return mComposerService;
	}

	/**
	 * @param pComposerService the composerService to set
	 */
	@Required
	public void setComposerService(ComposerService pComposerService) {
		mComposerService = pComposerService;
	}

	
	
}
